package com.luojialong.enums;



public enum AffairStatus {

    /**
     * 执行成功
     */
    SUCCESS(2000,"success"),

    /**
     * 服务器内部异常
     */
    FAILURE(5000,"failure"),


    /**
     * 请求参数错误
     */
    PARAMS_ERROR(4050,"params is error"),

    /**
     * 没权限
     */
    NOT_ADMIN(4030,"no permission"),


    /**
     * 未登录
     */
    NOT_LOGIN(4070,"not login");

    private final String text;

    private final Integer code;


    AffairStatus(Integer code,String text) {
        this.code = code;
        this.text = text;
    }
    
    
    public Integer getCode() {
        return code;
    }
    
    public String getText() {
        return text;
    }

}
